import fs  from 'fs'
export const readLocalJson = () => {
  try {
    const data = fs.readFileSync('data.json', 'utf8');
    const jsonData = JSON.parse(data);
    console.log(jsonData);
    return jsonData
  } catch (err) {
    console.error('Error reading file:', err);
  }
}

// console.log(Number(undefined))
const obj = {prop1: 'value1', prop2: 'value2'}
console.log(Reflect.get(obj, 'prop1'))


